package com.joolun.mall.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.joolun.mall.entity.Chain;
import com.joolun.mall.entity.ChainDetail;
import com.joolun.mall.entity.ChainPlan;

import java.util.List;

/**
 * 品牌Service接口
 * 
 * @author www.joolun.com
 * @date 2025-05-20+
 */
public interface IChainService extends IService<Chain>
{

    Page<Chain> page1(Page<Chain> page, Chain dto);
    /**
     * 获取接龙链接详情
     * @param chainId
     * @return
     */
    Chain detail(Long chainId,boolean checkDelete);

    /**
     * 新增链接
     * @param chains
     */
    void addLinks(List<Chain> chains);

    /**
     * 更新链接
     * @param chain
     */
    void updateLink(Chain chain);

    /**
     * 删除链接
     * @param chainIds
     */
    void deleteLink(List<Long> chainIds);

    String genLink(Chain chain);

    ChainDetail detail(Long planId, String skuCode);

}
